Skip to content

Added code and test for example component - #169

Merged
masc2023 merged 6 commits into
eclipse-score:mainfrom
bgsw-contrib:feature/add-example-component-code-tests
Sep 9, 2026
Merged

masc2023 merged 6 commits into
eclipse-score:mainfrom
bgsw-contrib:feature/add-example-component-code-tests

Conversation

@naveena456

Copy link
Copy Markdown
Contributor

Created an actual code and test target to demonstrate the usage of docs_bundle.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.7.0) and connecting to it...
INFO: Invocation ID: 52593ff8-2c6b-45a4-b22c-8e2cf4e10b64
Computing main repo mapping: 
WARNING: For repository 'aspect_rules_lint', the root module requires module version aspect_rules_lint@1.10.2, but got aspect_rules_lint@2.3.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)

Analyzing: target //:license-check (36 packages loaded, 10 targets configured)

Analyzing: target //:license-check (89 packages loaded, 10 targets configured)

Analyzing: target //:license-check (89 packages loaded, 10 targets configured)

Analyzing: target //:license-check (163 packages loaded, 3783 targets configured)

Analyzing: target //:license-check (165 packages loaded, 8296 targets configured)

Analyzing: target //:license-check (171 packages loaded, 8335 targets configured)

Analyzing: target //:license-check (172 packages loaded, 8459 targets configured)

Analyzing: target //:license-check (175 packages loaded, 10344 targets configured)

Analyzing: target //:license-check (176 packages loaded, 10464 targets configured)

Analyzing: target //:license-check (176 packages loaded, 10464 targets configured)

INFO: Analyzed target //:license-check (177 packages loaded, 12043 targets configured).
[12 / 16] JavaToolchainCompileClasses external/rules_java+/toolchains/platformclasspath_classes; 0s disk-cache, processwrapper-sandbox
[13 / 16] Generating Dash formatted dependency file ...; 0s disk-cache, processwrapper-sandbox ... (2 actions running)
INFO: From Generating Dash formatted dependency file ...:
INFO: Successfully converted 2 packages from Cargo.lock to bazel-out/k8-fastbuild/bin/formatted.txt
INFO: Found 1 target...
Target //:license.check.license_check up-to-date:
  bazel-bin/license.check.license_check
  bazel-bin/license.check.license_check.jar
INFO: Elapsed time: 160.672s, Critical Path: 1.96s
INFO: 16 processes: 12 internal, 3 processwrapper-sandbox, 1 worker.
INFO: Build completed successfully, 16 total actions
INFO: Running command line: bazel-bin/license.check.license_check ./formatted.txt <args omitted>
usage: org.eclipse.dash.licenses.cli.Main [-batch <int>] [-cd <url>]
       [-confidence <int>] [-ef <url>] [-excludeSources <sources>] [-help] [-lic
       <url>] [-project <shortname>] [-repo <url>] [-review] [-summary <file>]
       [-timeout <seconds>] [-token <token>]

Naveena Panne and others added 4 commits September 3, 2026 14:43
Signed-off-by: Naveena Panne <naveenbellare@gmail.com>
Signed-off-by: Naveena Panne <pnn9kor@bosch.com>
Signed-off-by: Naveena Panne <pnn9kor@bosch.com>
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-169: https://eclipse-score.github.io/module_template/pr-169/

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are small, consistent, and include a passing-focused unit test plus the intended Bazel wiring for documentation code targets.

Pull request overview

This PR adds a minimal C++ “component example” implementation plus a GoogleTest target, and wires the component into the docs_bundle so documentation can reference/link to real code targets.

Changes:

  • Added make_hello_message() implementation and public header under score/component_example/src/.
  • Added a cc_test validating the expected greeting output.
  • Updated score/component_example/BUILD to define a cc_library and connect it to the docs bundle via code_targets.
File summaries
File Description
score/component_example/tests/component_example_test.cpp Adds a GoogleTest verifying make_hello_message() output.
score/component_example/src/component_example.hpp Declares the example API function.
score/component_example/src/component_example.cpp Implements the example API function.
score/component_example/BUILD Introduces cc_library/cc_test targets and updates docs_bundle to use code_targets.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@MaximilianSoerenPollak MaximilianSoerenPollak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Docs-AS-Code perspective this is correct.

@masc2023
masc2023 merged commit d643fba into eclipse-score:main Sep 9, 2026
4 checks passed
@naveena456
naveena456 deleted the feature/add-example-component-code-tests branch September 10, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants